<?php
namespace Act\Os;
use Act\Os\Backend;
class SetEmail extends Backend{
	public function doGet(){
		$this->display('form.php');
	}

	public function doPost(){
		foreach($_POST as $key=>$val){
			config($key,post($key,'','strip_tags,trim'));
		}
		$this->alert('success','设置成功');
		$this->display('form.php');
	}
}